package com.itany.book.user.service;

import com.github.pagehelper.PageInfo;
import com.itany.book.exception.UserPhoneExistsException;
import com.itany.book.pojo.Address;
import com.itany.book.pojo.User;

import java.util.List;

/**
 * Created by tyh on 2018/9/22.
 */
public interface IUserService {

    public void addUser(User user);

    public PageInfo<User> findUsers(Integer pageNo, Integer pageSize);

    public User login(User user);

    User register(User user) throws UserPhoneExistsException;

    List<Address> findAllAddress(String username);

    User selectByUsername(String username);

}
